﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SES.CMS.BL;

namespace SES.CMS.Module
{
    public partial class ucHomeNews : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                rptConsult.DataSource = new cmsArticleBL().SelectFrontpage();
                rptConsult.DataBind();
            }

        }
        public string WordCut(string text)
        {
            return Ultility.WordCut(text, 110, new char[] { ' ', '.', ',', ';' }) + "...";
        }
        public string Change_AV(string ip_str_change)
        {
            return Ultility.Change_AV(ip_str_change);
        }
    }
}